GitHub

您所在的位置:网站首页 halo github page GitHub

GitHub

2023-03-30 11:33| 来源: 网络整理| 查看: 265

plugin-oauth2

Halo 2.0 的 OAuth2 第三方登录插件。

使用方法 在 Releases 下载最新的 JAR 文件。 在 Halo 后台的插件管理上传 JAR 文件进行安装。 进入 Console 端的用户管理,点击右上角的 认证方式 按钮进入认证方式管理列表即可看到当前插件提供的认证方式。 按照下方的配置指南配置所需的认证方式并启用。 进入当前登录用户的个人资料页面,即可绑定已启用的认证方式。 配置指南

目前支持的认证方式:

服务商 文档 Halo 所需配置 回调地址 GitHub https://docs.github.com Client ID Client Secret /login/oauth2/code/github GitLab https://docs.gitlab.com Client ID Client Secret /login/oauth2/code/gitlab Gitee https://gitee.com/oauth/applications Client ID Client Secret /login/oauth2/code/gitee 开发环境

插件开发的详细文档请查阅:https://docs.halo.run/developer-guide/plugin/hello-world

git clone [email protected]:halo-sigs/plugin-oauth2.git # 或者当你 fork 之后 git clone [email protected]:{your_github_id}/plugin-oauth2.git cd path/to/plugin-oauth2 # macOS / Linux ./gradlew build # Windows ./gradlew.bat build

修改 Halo 配置文件:

halo: plugin: runtime-mode: development fixedPluginPath: - "/path/to/plugin-oauth2"


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3